package cn.tedu.blog.server.pojo.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;


@Data
@ApiModel("类别管理")
public class CategoryListVO implements Serializable {

    private Long id;

//    @ApiModelProperty(value = "类别名称",name = "code",example = "多线程")
//    private String code;

    @ApiModelProperty(value = "类别名称",name = "name",example = "多线程")
    private String name;

    //分类下的文章数
    private Long articleCount;

    @ApiModelProperty(value = "类别状态",name = "status",example = "1")
    private Integer status;

    // 排序
    private Integer sort;

    @ApiModelProperty(value = "创建时间",name = "gmtCreate",example = "2022-12-12 12:12:12")
    private LocalDateTime gmtCreate;

//    @ApiModelProperty(value = "最后修改时间",name = "gmtModified",example = "2022-12-12 12:12:12")
//    private LocalDateTime gmtModified;


//    @TableField(exist = false)
//    private LocalDateTime updateTimeStart;
//
//
//    @TableField(exist = false)
//    private LocalDateTime updateTimeEnd;

    @TableField(exist = false)
    private Integer offset;


    @TableField(exist = false)
    private Integer count;
}
